<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Migration_alter_post extends CI_Migration {

	public function up() {
		$fields['pos_is_dummy'] = array(
                              'type'        => 'TINYINT',
                              'constraint'  => '1',
                              'default'  		=> 0,
                              'null'        => FALSE
                            );
		$fields['pos_dummy_data'] = array(
                              'type'        => 'TEXT',
                              'null'        => TRUE
                            );
    $this->dbforge->add_column('ci_post', $fields);
	}

	public function down() {
		$this->dbforge->drop_column('ci_post', 'pos_is_dummy');
		$this->dbforge->drop_column('ci_post', 'pos_dummy_data');
	}

}

/* End of file class_name.php */
/* Location: ./application/migrations/class_name.php */